#ifndef __LGUICHECKBOX_H__
#define __LGUICHECKBOX_H__


#include "LGUIWindow.h"

class LGUICheckbox : public LGUIWindow  
{
	bool value,pressed,lastPressed,down;
	TCHAR *text;
public:
	LGUICheckbox(TCHAR *_text, int id, int _x, int _y, int _w, int _h, bool _value=false, int _userdata=-1);
	virtual ~LGUICheckbox();

	void draw(int xoff, int yoff);
	void penDown(int px, int py);
	void penMove(int px, int py, bool pressed);
	void penUp(int px, int py);

	void setValue(int v)
	{
		value = (v!=0) ? true : false;
	}
	int getValue()
	{
		return value ? 1 : 0;
	}
};


#endif //__LGUICHECKBOX_H__